package com.irdstudio.efp.console.service.facade;

import java.util.List;

import com.irdstudio.efp.console.service.vo.SUserDutyVO;
import com.irdstudio.efp.console.service.vo.SUserRoleVO;
import com.irdstudio.efp.console.service.vo.SUserVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>Description:系统用户表				<p>
 * @author chenqm1
 * @date 2018-05-03
 */
public interface SUserService {
	
	public List<SUserVO> queryAllOwner(SUserVO sUserVo);
	public List<SUserVO> queryAllOrgByPage(SUserVO sUserVo);

	public List<SUserVO> queryAllCurrOrg(SUserVO sUserVo);
	
	public List<SUserVO> queryAllCurrDownOrg(SUserVO sUserVo);
	public List<SUserVO> queryAllUserByLegalOrg(SUserVO sUserVo);

	public int insertSUser(SUserVO vo);
	
	public int deleteByPk(SUserVO sUserVo);
	
	public int updateByPk(SUserVO sUserVo);
	public int pwdByPk(SUserVO sUserVo);

	public int setUserRole(SUserRoleVO sUserRoleVOS);

	public int setUserDuty(SUserDutyVO sUserDutyVOS);

	public SUserVO queryByPk(SUserVO sUserVo);
	public int insertOrUpdateByPk(SUserVO sUserVo);
	/**
	 * 查询催收人信息
	 * @param sUserVo
	 * @return
	 */
	public List<SUserVO> queryColtUserByPage(SUserVO sUserVo);
	/**
	 * 根据查询条件查询 用户 
	 * @param sUserVo
	 * @return
	 */
	public List<SUserVO> queryUsersByCondition(SUserVO sUserVo);
	/**
	 * 根据查询条件查询催收员信息
	 * @param sUserVo
	 * @author liangyongcan
	 * @return
	 */
	public List<SUserVO> queryAdjustColtUser(SUserVO sUserVo);

	List<SUserVO> queryUsersByOrgCode(String code);
	List<SUserVO> queryUSByOrgCode(String code);


	//通过用户号查询用户名称
	public String queryUserNameByUserId(String userId);

}
